package gui;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.Timer;
import javax.swing.WindowConstants;

import jpanels.ClickTester;

public class Main {
    public static void main(String[] args) {
	JFrame app = new JFrame();
	app.setPreferredSize(new Dimension(800,600));
	final ClickTester fondledFurniture = new ClickTester();
	app.add(fondledFurniture);
	Timer ticker = new Timer(10, new ActionListener(){
	    public void actionPerformed(ActionEvent e) {
		fondledFurniture.tick();
	    }
	});
	app.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
	app.setVisible(true);
	app.pack();
	ticker.start();
    }
}
